document.addEventListener('DOMContentLoaded', (Event) => {
    const dialog = document.getElementById('dialog');
    const closeBtn = document.getElementById('closeBtn');


    closeBtn.addEventListener('click', () => {
        dialog.style.display = 'none';
    });

    const dialog_wrap = document.querySelector('.dialog-wrap');
    if (dialog_wrap) {
        dialog_wrap.addEventListener('click', () => {
            dialog.style.display = 'none';
        });
    }

    const dialogContent = document.querySelector('.dialog-content');
    if (dialogContent) {
        dialogContent.addEventListener('click', (event) => {
            event.stopPropagation();
        });
    }
})